<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        function func1() {
            console.log("无参函数func1被调用了")
        }
        func1();

        function func2(a, b) {
            console.log("有参函数func2被调用了，a=>" + a + ", b=>" + b);
        }
        func2("abc", 123);

        function sum(num1, num2) {
            return num1 + num2;
        }
        console.log(sum(100, 150));


    </script>
</head>
<body>

</body>
</html>